From a9634a6106b5ea444557428333dd717e861b2b8c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 15 Oct 2005 09:32:10 +0100 Subject: [PATCH] At least for the time being, GETVCPUCONTEXT needs to work even for uninitialised VCPUs. xc_linux_build() depends on it (rather stupidly). Signed-off-by: Keir Fraser --- xen/common/dom0_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/common/dom0_ops.c b/xen/common/dom0_ops.c index 5d1f17adc7..9c682dffce 100644 --- a/xen/common/dom0_ops.c +++ b/xen/common/dom0_ops.c @@ -446,8 +446,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op) goto getvcpucontext_out; ret = -ESRCH; - v = d->vcpu[op->u.getvcpucontext.vcpu]; - if ( (v == NULL) || !test_bit(_VCPUF_initialised, &v->vcpu_flags) ) + if ( (v = d->vcpu[op->u.getvcpucontext.vcpu]) == NULL ) goto getvcpucontext_out; ret = -ENOMEM; -- 2.30.2